package com.mspbots.core.wise.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * com.mspbots.core.model.TenantUserMappingTeamsUser
 *
 * @author Jun Zhou
 * @date 19:18 2019/6/28
 **/
@Data
@NoArgsConstructor
@TableName(autoResultMap = true)
public class TenantUserMapping extends TenantEntity {

    private Long tenantUserId;
    private Long sheetUserId;
    private String teamsUserId;
    private String notes;
    private Boolean enable;
    private Long userId;
    private transient String firstName;
    private transient String userName;
    private transient String tsheetUserName;
    private transient String teamsUserName;
    private transient String tz;
    private transient String tzStr;


    @Builder
    public TenantUserMapping(Long id, Long tenantId, Long tenantUserId, Long sheetUserId, String teamsUserId, Boolean enable, Long userId) {
        this.id = id;
        this.tenantId = tenantId;
        this.tenantUserId = tenantUserId;
        this.sheetUserId = sheetUserId;
        this.teamsUserId = teamsUserId;
        this.enable = enable;
        this.userId = userId;
    }
}
